package com.yxinsur.imc.business.dto;

import lombok.Data;
import lombok.ToString;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.util.Date;

/**
* Title: Basic.java
* Description: 保单基本信息
* Company: 壹心科技[经代开发组]
* @date 2021-01-25
* @version 1.0
 */
@Data
@ToString
public class Basic implements Serializable {

	private static final long serialVersionUID = 1L;

    @NotBlank(message="投保单号[proposalCode]不能为空")
	private String proposalCode;

    @NotBlank(message="保单号[policyCode]不能为空")
    private String policyCode;

    private String brokerCode;  //代理人工号

    private String certiCode;   //证件号码

    @NotBlank(message="保险公司名称[supplierName]不能为空")
    private String supplierName;

    @NotNull(message="投保日期[applyDate]（yyyy-mm-dd）不能为空")
    private Date applyDate;

    @NotNull(message="承保日期[insureDate]（yyyy-mm-dd）不能为空")
    private Date insureDate;

    @NotNull(message="生效日期[effectiveDate]（yyyy-mm-dd）不能为空")
    private Date effectiveDate;

}